class PostingsController < AuthorizedController
  def index
    @bundle = current_user.bundles.find(params[:bundle_id] || session[:active_bundle_id] || :first)
    @bundle = current_user.bundles.create(:title => 'Drag Listings Here') unless @bundle
    session[:active_bundle_id] = @bundle.to_param
    
    @postings = Posting.paginate(:page => params[:page], :per_page => 10, :order => 'created_at DESC')
  end
end
